﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateDefectPopup.aspx.cs"
    Inherits="VirtualOrg.Web.manage.FormCreateDefectPopup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style.css" rel="stylesheet" type="text/css" />
   <%-- <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/start/jquery-ui.css"
        rel="stylesheet" type="text/css" />--%>
    <link href="../css/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.8.17.custom.min.js" type="text/javascript"></script>
    <script src="../js/jquery.validationEngine-en.js" type="text/javascript"></script>
    <script src="../js/jquery.validationEngine.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">

        $(function () {
            $("input:submit").button();

            $("#txtStartDate").datepicker({
                changeMonth: true,
                changeYear: true
            });

            $("#txtEndDate").datepicker({
                changeMonth: true,
                changeYear: true
            });
        });

      
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="pnlUpdate" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <table style="width: 95%; height: 400px;">
                <tr>
                    <td>
                        <label for="author">
                            Title:</label>
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtTitle" runat="server" CssClass="validate[required,minSize[6]] input_field ui-corner-all"
                            Width="95%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="email">
                            Organization:</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlOrganization" CssClass="select_field ui-corner-all" 
                            runat="server" AutoPostBack="True" 
                            onselectedindexchanged="ddlOrganization_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <label for="email">
                            Project:</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlProject" CssClass="select_field ui-corner-all" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label>
                            Activity:</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlActivity" CssClass="validate[required] select_field ui-corner-all"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <label style="width: 200px;">
                            Assigned To:</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAssignedTo" CssClass="validate[required] select_field ui-corner-all"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="spancls">Status:</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlStatus" CssClass="select_field ui-corner-all" runat="server">
                            <asp:ListItem Value="Open" Text="Open"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <label for="email">
                            Reason:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtReason" runat="server" CssClass="input_field ui-corner-all"></asp:TextBox><br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="spancls">Priority:</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlPriority" CssClass="select_field ui-corner-all" runat="server">
                            <asp:ListItem Value="0" Text="0 - Low"></asp:ListItem>
                            <asp:ListItem Value="1" Text="1 - Medium"></asp:ListItem>
                            <asp:ListItem Value="2" Text="2 - High"></asp:ListItem>
                            <asp:ListItem Value="3" Text="4 - Critical"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <label for="email">
                            Created By:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCreatedBy" runat="server" Enabled="false" CssClass="input_field ui-corner-all"></asp:TextBox><br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="author">
                            Estimated Start Date:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtStartDate" runat="server" ReadOnly="true" CssClass="input_field ui-corner-all"></asp:TextBox>
                    </td>
                    <td>
                        <label for="email">
                            Estimated End Date:</label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEndDate" runat="server" ReadOnly="true" CssClass="input_field ui-corner-all"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="author">
                            Task Details:</label>
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" CssClass="input_field ui-corner-all"
                            Width="95%" Height="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="author">
                            Attachment:</label>
                    </td>
                    <td colspan="3">
                        <asp:FileUpload ID="fileAttachment" CssClass="input_field ui-corner-all" Width="240px"
                            runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Button ID="btnCreate" runat="server" Text="Create Task" Style="float: right;"
                            OnClick="btnCreate_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
